<?php

require_once 'Zend/Amf/Constants.php';
require_once 'Zend/Amf/Parse/Amf0/Deserializer.php';

class Flextrine_Amf_Parse_Amf0_Deserializer extends Zend_Amf_Parse_Amf0_Deserializer {

	/**
     * AMF3 data type encountered load AMF3 Deserializer to handle
     * type markers.
     *
     * @return string
     */
    public function readAmf3TypeMarker() {
        require_once 'Flextrine/Amf/Parse/Amf3/Deserializer.php';
        $deserializer = new Flextrine_Amf_Parse_Amf3_Deserializer($this->_stream);
        $this->_objectEncoding = Zend_Amf_Constants::AMF3_OBJECT_ENCODING;
        return $deserializer->readTypeMarker();
    }
	
}